package com.mm.domain.taxi;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户打车订单关系表
 * </p>
 *
 * @author JueDream
 * @since 2021-08-04
 */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_user_order_relation")
@ApiModel(value="DUserOrderRelation对象", description="小程序用户订单关系信息表")
public class DUserOrderRelation implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer Id;

    @ApiModelProperty(value = "小程序用户编号(司机ID)")
    @TableField("d_openid")
    private String dOpenId;

    @ApiModelProperty(value = "小程序用户编号(乘客ID)")
    @TableField("m_openid")
    private String mOpenId;

    @ApiModelProperty(value = "订单ID")
    @TableField("order_id")
    private Integer orderId;

    public DUserOrderRelation(){}

    @Builder
    public DUserOrderRelation(Integer id, String dOpenId, String mOpenId, Integer orderId) {
        Id = id;
        this.dOpenId = dOpenId;
        this.mOpenId = mOpenId;
        this.orderId = orderId;
    }
}